package evenements;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import modele.MapEntite;
import modele.ThreadBot;
import vues.IHM;

public class EcouteurBarMenu implements ActionListener{

	IHM ihm;
	
	public EcouteurBarMenu(IHM ihm){
	this.ihm = ihm;
}	
	@Override
	public void actionPerformed(ActionEvent e) {
		switch (e.getActionCommand()){
		case "Lancer la simulation" :
			this.ihm.getSimulation().start();
			break;
		case "Stopper la simulation" :
			this.ihm.getSimulation().stop();
			break;
		case "Quitter":
			break;
		}
		
	}
	

}
